﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="BouCatalog.aspx.cs" Inherits="Admin_BouCatalog" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="content-box">
        <div class="content-box-header">
            <h3>
                Manage bouquet catalog</h3>
            <div class="clear">
            </div>
        </div>
        <div class="content-box-content">
            <div style="border: 1px solid #5fa226; border-radius: 5px;">
                <asp:GridView ID="grvBouCatalog" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
                    Width="100%" AllowPaging="true" PageSize="5" BorderColor="#CCCCCC" BorderStyle="None"
                    BorderWidth="1px" CellPadding="3" 
                    OnPageIndexChanging="grvBouCatalog_PageIndexChanging" 
                    onrowcommand="grvBouCatalog_RowCommand">
                    <Columns>
                        <asp:TemplateField HeaderText="Content" HeaderStyle-Width="90%">
                            <ItemTemplate>
                                <%#Eval("C_Name") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:LinkButton ID="lbnDel" runat="server" CommandName="Remove" CommandArgument='<%#Eval("C_ID") %>'>	<img src="../images/icons/cross.png" alt="Delete" /></asp:LinkButton>
                                <asp:LinkButton ID="lbnUpdate" runat="server" CommandName="Up" CommandArgument='<%#Eval("C_ID") %>'><img src="../images/icons/pencil.png" alt="Edit" /></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5fa226" Font-Bold="True" ForeColor="White" Height="50px"
                        Font-Size="16px" />
                </asp:GridView>
            </div>
            <br />
            <asp:Label ID="lblID" runat="server" Text="" Visible="false"></asp:Label>
            <br />
            <asp:TextBox ID="txtValue" runat="server" TextMode="MultiLine" Width="100%" Height="100px"></asp:TextBox>
            <br />
            <asp:Button ID="btnInsert" runat="server" Text="Insert" Width="100px" 
                onclick="btnInsert_Click" CssClass="button" />
            <asp:Button ID="btnUpdate" runat="server" Text="Update" Width="100px" 
                onclick="btnUpdate_Click" CssClass="button"/>
            <br />
            <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red"></asp:Label>
        </div>
        <br />
    </div>
</asp:Content>
